package com.qfedu.ioc;

import com.qfedu.ioc.framework.annotation.Autowired;

public class Leader {
@Autowired
private Water water;
@Autowired
private Coffee coffee;

    public void drink(){

        System.out.println("喝"+water.getType());
    }

}
